/**<
#9 Set up an enum with the names of the following animals: chicken, dog, cat,
 elephant, duck, and snake. Allocate an array with an element for each of
 these animals, and use an initializer list to initialize each element to
 hold the number of legs that animal has.
 */

#include <iostream>
using namespace std;

 void AnimalLegs(){

//set up animal names & number of legs
 enum Animals{
    CHICKEN = 2,
    DOG = 4,
    CAT = 4,
    ELEPHANT = 4 ,
    DUCK =2 ,
    SNAKE = 0
 };

//create an array for the animals
int AnimalArray[6] = {CHICKEN, DOG, CAT, ELEPHANT, DUCK, SNAKE};

//display the output
cout << "Chicken has: " << AnimalArray[0] << " legs" <<endl;
cout << "Dog has: " << AnimalArray[1] << " legs" <<endl;
cout << "Cat has: " << AnimalArray[2] << " legs" <<endl;
cout << "Elphant has: " << AnimalArray[3] << " legs" <<endl;
cout << "Duck has: " << AnimalArray[4] << " legs" <<endl;
cout << "Snake has: " << AnimalArray[5] << " legs";

 }
